package edu.bailie.mybatis.service;

import edu.bailie.mybatis.mapper.CarMapper;
import edu.bailie.mybatis.pojo.Car;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class CarServiceImpl implements CarService{
	@Resource(name = "carMapperImpl")
	private CarMapper carMapper;
	@Override
	public void shouCar() {
		List<Car> cars = carMapper.selectByExample(null);
		cars.forEach(System.out::println);
	}
}
